<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <head>
       
    </head>
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
             <ui:define name="content_nav">
                   #{msg.content_nav_costmanage}
                </ui:define>
            <ui:define name="content">
                <h:panelGrid  styleClass="body_content_box" columns="1">
                    <h:form>
                        <h:panelGrid styleClass="search_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_order_search}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                             <h:panelGrid columns="4" cellspacing="6">
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_project_code}" ></h:outputLabel>
                                    <h:inputText value="#{orderListBean.projectCode}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_order_code}" ></h:outputLabel>
                                    <h:inputText value="#{orderListBean.orderCode}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_order_pro}"></h:outputLabel>
                                    <h:selectOneMenu value="#{orderListBean.orderPro}">
                                        <f:selectItems value="#{orderListBean.orderProList}"/>
                                    </h:selectOneMenu>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                 <h:outputLabel/>
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_contact_code}"></h:outputLabel>
                                    <h:inputText value="#{orderListBean.contactCode}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_task_name}"></h:outputLabel>
                                    <h:inputText value="#{orderListBean.taskName}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_order_status}"></h:outputLabel>
                                     <h:selectOneMenu value="#{orderListBean.orderStatus}">
                                        <f:selectItems value="#{orderListBean.orderStatusList}"/>
                                    </h:selectOneMenu>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid cellspacing="0" cellpadding="0" columns="2">
                                    <h:commandButton value="#{msg.bt_search}" action="#{orderListBean.refreshData}"/>
                                    <h:commandButton value="#{msg.bt_reset}" action="#{orderListBean.reset}"/>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </h:form>
                </h:panelGrid>
                <h:messages globalOnly="true" infoClass="info"  errorClass="alert" fatalClass="colorOrange" />
                <t:aliasBean alias="#{listBean}" value="#{orderListBean}">
                    <f:subview id="subview">
                        <ui:include src="./table_list.xhtml"></ui:include>
                    </f:subview>
                </t:aliasBean>
   
            </ui:define>
        </ui:composition>
    </body>
</html>